package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户推荐关系表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-04-20
 */
@TableName("wz_user_recommend")
public class WzUserRecommend extends Model<WzUserRecommend> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 申请人用户编号
     */
    @TableField("applicant_user_code")
    private Long applicantUserCode;
    /**
     * 接收人用户编号
     */
    @TableField("accept_user_code")
    private Long acceptUserCode;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getApplicantUserCode() {
        return applicantUserCode;
    }

    public void setApplicantUserCode(Long applicantUserCode) {
        this.applicantUserCode = applicantUserCode;
    }

    public Long getAcceptUserCode() {
        return acceptUserCode;
    }

    public void setAcceptUserCode(Long acceptUserCode) {
        this.acceptUserCode = acceptUserCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzUserRecommend{" +
        "id=" + id +
        ", applicantUserCode=" + applicantUserCode +
        ", acceptUserCode=" + acceptUserCode +
        ", createTime=" + createTime +
        "}";
    }
}
